package com.ljfresh.customer.dto;


import com.ljfresh.customer.data.LoadEditData;
import com.ljfresh.customer.exception.ErrorMap;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by  on 2019/4/5.
 */
@Data
public class UDeskResult {

    @ApiModelProperty("code")
    private Integer code;

    @ApiModelProperty("描述")
    private String message;

    @ApiModelProperty("数据")
    private Object data;

    public UDeskResult(){
        this.code = 1000;
        this.message = "请求成功!";
    }

    public UDeskResult(Integer code){
        this.code = code;
        this.message = ErrorMap.map.get(code);
    }

    public UDeskResult(Integer code,String message) {
        this.code = code;
        this.message = message;
    }

/*    public UDeskResult(Integer code,String message,Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }*/
}
